import tkinter.colorchooser
from tkinter import *
'''
root = Tk()

def callback():
     a = colorchooser.askcolor()
     print(a)

Button(root,text="选择颜色",command=callback).pack()
mainloop()
'''
a = colorchooser.askcolor()
print(a)

